const defaultFields = [
  {
    rowKey: 'areaCode',
    valueKey: 'areaCode'
  },
  {
    rowKey: 'areaName',
    valueKey: 'areaName'
  },
  {
    rowKey: 'cityName',
    valueKey: 'saleCityName'
  },
  {
    rowKey: 'cityCode',
    valueKey: 'saleCityNo'
  },
  {
    rowKey: 'provinceCode',
    valueKey: 'saleProvinceNo'
  },
  {
    rowKey: 'provinceName',
    valueKey: 'saleProvinceName'
  },
]
export const updateCountryFn = (row, value, fields) => {
  if (!fields) {
    fields = defaultFields;
  }
  fields.forEach(item => {
    row[item.rowKey] = value[item.valueKey];
  });
}
